/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bionic.idao;


import com.bionic.entity.Account;
import java.sql.SQLException;
import java.util.ArrayList;

/**
 *
 * @author Artem
 */
public interface IAccountDAO {
      public ArrayList<Account> findAll() throws SQLException;
      public Account findById(Integer id) throws SQLException;
      public Integer update (Account account) throws SQLException;
      public Integer insert (Account account) throws SQLException;
      public Integer deleteById (Integer id) throws SQLException;
      public ArrayList<Account> findByUserId(Integer userId) throws SQLException;
      
}
